package com.chefu.server.service;

import com.chefu.common.pojo.PageResult;
import com.chefu.server.pojo.ServerClassify;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Longtiantai
 * @date 2021/3/31 14:19
 **/
@Service
public interface ServerClassifyService {

    void saveServerClassify(Long code, String name);

    PageResult<ServerClassify> serverClassifyPageQuery(Integer pageNum, Integer pageSize, Long code, String name);

    void updateServerClassify(Long id,String name);

    ServerClassify findServerClassify(Long id);

    String deleteServerClassify(Long id);

    List<ServerClassify> sonClassifyByParentId(Long parentId);


    void saveSonClassifyByParentId(Long parentId, Long code, String name, Integer generic);


    PageResult<ServerClassify> sonClassifyPageQuery(Integer pageNum, Integer pageSize, Long code, String name);

    void updateSonClassify(Long id,String name);

    void deleteSonClassifyById(Long id);

    ServerClassify sonClassifyById(Long id);
}
